	#{extends 'BackHouses/base.html'/}
	#{set housesHistory : 'class=active' /}
<table class="table table-condensed">
   <thead>
      <tr>
         <th>地址</th>
         <th>显示状态</th>
         <th>审核状态</th>
         <th>操作</th>
      </tr>
   </thead>
   <tbody>
      #{list items:houseList,as : 'house'}
      <tr>  
         <td><a href="@{BackHouses.showHouseInfo(house.id)}">
            ${house.community}${house.address}
         </a></td>
         <td>
            #{if house.status==0} 
            <a href="@{BackHouses.changeHistoryStatus(house.id,1)}" 	style="color: #000;">
           	不显示</a>
            #{/if} 
            #{else}
             <a href="@{BackHouses.changeHistoryStatus(house.id,0)}">
          	显示
          	</a>
            #{/else}
         </td>
         
         <td>
            #{if house.audit==1} 
            未审核
            #{/if} #{elseif house.audit==2}
           不通过
            #{/elseif}
            #{else}
            通过
            #{/else}
         </td>
         <td>
            <a class="btn btn"href="@{BackHouses.editHouseInfo(house.id)}">编辑</a>
            <a class="btn btn"href="@{BackHouses.housesHistoryDelete(house.id)}">删除</a>
         </td>
      </tr>
      #{/list}
   </tbody>
</table>
<!-- 分页页面链接 -->
	#{page pageBean:pageBean,params:params/}